package com.codesuc.aichat.userFavorite.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.codesuc.aichat.common.base.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;

/**
* @Author: ZhangGongMing
* @CreateTime: 2025/09/23 12:56
* @Description: UserFavorite实体类
* @Version: 1.0
*/
@Data
@EqualsAndHashCode(callSuper = true)
@TableName(value = "user_favorite")
@Schema(title = "UserFavorite对象", description = "用户角色关联表")
public class UserFavorite extends BaseEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
    * 主键ID
    */
    @Schema(name = "主键ID")
    private Long id;

    /**
    * 用户ID
    */
    @Schema(name = "用户ID")
    private Long userId;

    /**
    * 角色ID
    */
    @Schema(name = "角色ID")
    private Long roleId;

}